﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dialog_user_edit.aspx.cs" Inherits="Donal.Xms.Web.qianyi.dialog.dialog_user_edit" %>

<%@ Import Namespace="Donal.Xms.Common" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>账号编辑</title>
    <link rel="stylesheet" type="text/css" href="../skin/icon/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../skin/default/style.css" />
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/webuploader/webuploader.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>

    <script type="text/javascript">
        var api = top.dialog.get(window); //获取父窗体对象
        //页面加载完成执行
        $(function () {

            //初始化表单验证
            $("#form1").initValidform();
            //初始化上传控件
            $(".upload-img").InitUploader({ sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf" });

        });


    </script>
</head>

<body>
    <form id="form1" runat="server">
        <div class="div-content">
            <dl>
                <dt>所属公司</dt>
                <dd id="items">
                    <input type="text" id="txtCompany" class="input normal" value="<%=company_name %>" datatype="*2-100" style="width: 490px;" disabled="disabled" />
                    <input id="hidParentId" type="hidden" runat="server" value="0" />
                </dd>
            </dl>
            <dl>
                <dt>用户类型</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rbtGroup" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="0" Selected="True">普通</asp:ListItem>
                            <asp:ListItem Value="1">管理员</asp:ListItem>
                            <asp:ListItem Value="2">超级用户</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                    <span class="Validform_checktip">*禁用账户无法登录</span>
                </dd>
            </dl>
            <dl>
                <dt>用户状态</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="0" Selected="True">正常</asp:ListItem>
                            <asp:ListItem Value="1">禁用</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                    <span class="Validform_checktip">*禁用账户无法登录</span>
                </dd>
            </dl>
            <dl>
                <dt>用户名</dt>
                <dd>
                    <asp:TextBox ID="txtUserName" runat="server" CssClass="input normal" datatype="*2-100" sucmsg=" " ajaxurl="../../tools/admin_ajax.ashx?action=username_validate"></asp:TextBox>
                    <span class="Validform_checktip">*登录的用户名，支持中文</span></dd>
            </dl>
            <dl>
                <dt>登录密码</dt>
                <dd>
                    <asp:TextBox ID="txtPassword" runat="server" CssClass="input normal" TextMode="Password" datatype="*6-20" nullmsg="请设置密码" errormsg="密码范围在6-20位之间" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">*登录的密码，至少6位</span></dd>
            </dl>
            <dl>
                <dt>邮箱账号</dt>
                <dd>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="input normal" MaxLength="50" datatype="/(^$)|(^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$)/" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">*取回密码时用到</span></dd>
            </dl>
            <dl>
                <dt>真实姓名</dt>
                <dd>
                    <asp:TextBox ID="txtNickName" runat="server" CssClass="input normal"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>上传头像</dt>
                <dd>
                    <asp:TextBox ID="txtAvatar" runat="server" CssClass="input normal upload-path"></asp:TextBox>
                    <div class="upload-box upload-img"></div>
                </dd>
            </dl>
            <dl>
                <dt>用户性别</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="保密" Selected="True">保密</asp:ListItem>
                            <asp:ListItem Value="男">男</asp:ListItem>
                            <asp:ListItem Value="女">女</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </dd>
            </dl>
            <dl>
                <dt>生日日期</dt>
                <dd>
                    <asp:TextBox ID="txtBirthday" runat="server" CssClass="input rule-date-input" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="/^\s*$|^\d{4}\-\d{1,2}\-\d{1,2}$/" errormsg="请选择正确的日期" sucmsg=" " />
                </dd>
            </dl>
            <dl>
                <dt>手机号码</dt>
                <dd>
                    <asp:TextBox ID="txtMobile" runat="server" CssClass="input normal" datatype="/^1\d{10}$/"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>电话号码</dt>
                <dd>
                    <asp:TextBox ID="txtTelphone" runat="server" CssClass="input normal" datatype="/(^$)|(^.{7,30}$)/"></asp:TextBox></dd>
            </dl>            
            <dl>
                <dt>QQ号码</dt>
                <dd>
                    <asp:TextBox ID="txtQQ" runat="server" CssClass="input normal" MaxLength="20"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>微信</dt>
                <dd>
                    <asp:TextBox ID="txtMsn" runat="server" CssClass="input normal" MaxLength="50"></asp:TextBox></dd>
            </dl>
            <dl style="display: none">
                <dt>通讯地址</dt>
                <dd>
                    <asp:TextBox ID="txtAddress" runat="server" CssClass="input normal" MaxLength="100"></asp:TextBox></dd>
            </dl>
        </div>
        <!--工具栏-->
        <div class="page-footer" style="text-align: right;">
            <div class="btn-wrap">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
            </div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
